package cn.edu.zut.model;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope(value = "prototype")
public class ReaderType {
    //读者类型ID
    private int id;
    //读者类型名
    private String typeName;
    //读者最多借阅数量
    private int maxBorrowNum;
    //可借阅天数
    private int limitDay;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typename) {
        this.typeName = typename;
    }

    public int getMaxBorrowNum() {
        return maxBorrowNum;
    }

    public void setMaxBorrowNum(int maxborrownum) {
        this.maxBorrowNum = maxborrownum;
    }

    public int getLimitDay() {
        return limitDay;
    }

    public void setLimitDay(int limitday) {
        this.limitDay = limitday;
    }

    @Override
    public String toString() {
        return "readertype{" +
                "id=" + id +
                ", typename='" + typeName + '\'' +
                ", maxborrownum=" + maxBorrowNum +
                ", limitday=" + limitDay +
                '}';
    }
}
